public class Training01 {
    public static void main(String[] args) {
        int a,b,c,i;
        System.out.println("100-1000之间的水仙花数有：");
        for (i = 100; i<1000 ; i++){
            a = i % 10;
            b =(i %100)/10;
            c = i / 100;
            if (i == a*a*a+b*b*b+c*c*c){
                System.out.println(i);
            }
        }

    }
}
